package com.vlong.town.entity.comm;

import java.io.Serializable;

/**
 * 信息互联信息实体类
 * @author Assassin
 */
public class CommInfo implements Serializable {

    /**
     * default SerialVersionUID
     */
    private static final long serialVersionUID = 1L;

    // Fields

    private Long infoId;// 标识信息-信息互联Id[主键值]
    private Long townId;// 标识信息-村镇Id
    private Integer state;// 状态信息-数据状态[1-正常 | 2-删除]
    private Integer status;// 状态信息-信息互联状态[1-已发布]
    private String title;// 基础信息-信息互联标题
    private String content;// 基础信息-信息互联内容
    private String desc;// 基础信息-信息互联简介
    private String thumbnail;// 基础信息-缩略图
    private Long createTime;// 时间信息-发布时间
    private Long updateTime;// 时间信息-更新时间
    private String createDate;//时间
    
    
    // Empty Constructor
    public CommInfo() {
        super();
    }

    // Full Constructor
    public CommInfo(Long infoId, Long townId, Integer state, Integer status, String title, String content, String desc, String thumbnail, Long createTime, Long updateTime) {
        this.infoId = infoId;
        this.townId = townId;
        this.state = state;
        this.status = status;
        this.title = title;
        this.content = content;
        this.desc = desc;
        this.thumbnail = thumbnail;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }

    // Property accessors

    public Long getInfoId() {
        return infoId;
    }

    public String getCreateDate() {
		return createDate;
	}

	public void setCreateDate(String createDate) {
		this.createDate = createDate;
	}

	public void setInfoId(Long infoId) {
        this.infoId = infoId;
    }

    public Long getTownId() {
        return townId;
    }

    public void setTownId(Long townId) {
        this.townId = townId;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public String getThumbnail() {
        return thumbnail;
    }

    public void setThumbnail(String thumbnail) {
        this.thumbnail = thumbnail;
    }

    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    public Long getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Long updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "CommInfo{" +
                "infoId=" + infoId +
                ", townId=" + townId +
                ", state=" + state +
                ", status=" + status +
                ", title='" + title + '\'' +
                ", content='" + content + '\'' +
                ", desc='" + desc + '\'' +
                ", thumbnail='" + thumbnail + '\'' +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                '}';
    }
}
